/*
 * @(#)ONTransformer.java
 * Date 2013-09-27
 * Version 1.0
 * Author Jim Horner
 * Copyright (c)2012
 */


package us.hornerscorners.lamppost.hl7v3common.transformer;

import javax.enterprise.context.ApplicationScoped;

import org.hl7.v3.ON;

import us.hornerscorners.lamppost.transformer.AbstractTransformer;


/**
 * Class description
 *
 *
 * @version        v1.0, 2013-09-27
 * @author         Jim Horner    
 */
@ApplicationScoped
public class ONTransformer extends AbstractTransformer<String, ON> {

    /**
     * Constructs ...
     *
     */
    public ONTransformer() {
        super();
    }

    /**
     * Method description
     *
     *
     * @param val
     *
     * @return
     */
    @Override
    public ON transform(String val) {

        ON result = new ON();

        result.getContent().add(val);

        return result;
    }
}
